<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area_name" class="form-control" name="row[area_name]" type="text" value="{$row.area_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('中考评级设置')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="basictpl" data-name="row[level_str]" id="first-table">
                <tr>
                    <td>{:__('最小分值(>=)')}</td>
                    <td>{:__('最大分值(<=)')}</td>
                    <td>{:__('评级代号')}</td>
                    <td>{:__('评级名称')}</td>
                    <td width="120"></td>
                </tr>
                <tr>
                    <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <textarea name="row[level_str]" class="form-control hidden" cols="30" rows="5">{$row.level_str}</textarea>
            <script id="basictpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][min]" class="form-control" size="10" value="<%=row.min%>" placeholder="最小分值"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][max]" class="form-control" size="10" value="<%=row.max%>" placeholder="最大分值"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][code]" class="form-control" style="width:100px" value="<%=row.code%>" placeholder="评级代号"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" style="width:100jx" value="<%=row.name%>" placeholder="评级名称"/></td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <!--<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
                    </td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('中考总分计算百分比')}:</label>
        <div class="col-xs-12 col-sm-3">
            <div class="input-group">
                <input id="c-middle_percent" class="form-control" placeholder="中考总分计算百分比, 填写整数即可" name="row[middle_percent]" data-rule="required" type="number" value="{$row.middle_percent}">
                <span class="input-group-addon">%</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('中考固定加分')}:</label>
        <div class="col-xs-12 col-sm-3">
          <input id="c-middle_fixed_score" class="form-control" name="row[middle_fixed_score]" data-rule="required" type="number" value="{$row.middle_fixed_score}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('高考评级设置')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="basictpl1" data-name="row[high_level_str]" id="first-table">
                <tr>
                    <td>{:__('最小分值(>=)')}</td>
                    <td>{:__('最大分值(<=)')}</td>
                    <td>{:__('评级代号')}</td>
                    <td>{:__('评级名称')}</td>
                    <td width="120"></td>
                </tr>
                <tr>
                    <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <textarea name="row[high_level_str]" class="form-control hidden" cols="30" rows="5">{$row.high_level_str}</textarea>
            <script id="basictpl1" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][min]" class="form-control" size="10" value="<%=row.min%>" placeholder="最小分值"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][max]" class="form-control" size="10" value="<%=row.max%>" placeholder="最大分值"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][code]" class="form-control" style="width:100px" value="<%=row.code%>" placeholder="评级代号"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" style="width:100jx" value="<%=row.name%>" placeholder="评级名称"/></td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <!--<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
                    </td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
